'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  // 房源管理=========================================================
  router.get('/house/getHouseList', controller.house.house);
  //删除
  router.post('/house/deleteHouse',controller.house.DeleteHouse);
  // 新增
  router.post('/house/addHouse',controller.house.AddHouse);
  // 编辑
  router.post('/house/editHouse',controller.house.editHouse);

  // 直播管理==========================================================
  router.get('/live/getliveList',controller.live.live);
  // 团购管理==========================================================
  router.get('/shop/getshopList',controller.shop.getShop);
  router.post('/shop/deletehopList',controller.shop.deleteShop);
};
